<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<script src="https://cdn.staticfile.org/vue/3.2.36/vue.global.min.js"></script>
</head>

<style>
  .cl1{
    width: 100px;
    height: 100px;
  }
  .cl2{
    background-color: brown;
  }
  .cl3{
    background-color: gray;
  }
</style>

<body>
<div id="hello-vue" class="demo">
  <div class="cl1" :class="obj"></div>
</div>

<script>
var app = {
  data(){
    return {
      obj: {'cl2':true, 'cl3':false}
    }
  }
}

var vm =  Vue.createApp(app).mount('#hello-vue')


</script>
</body>
</html>
